<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../js/vue.js"></script>
</head>
<body>
    <div id="app">
        <!-- v-if 相当于创建删除元素（不推荐），有你没我 -->
        <!-- v-show 相当于操作display属性（推荐）,根据情况不同决定展不展示 -->
        <div v-if="ifAccess">登录页面</div>
        <div v-else>注册页面</div>
        <!-- <div v-show="ifAccess">登录页面</div> -->
        <!-- <div v-show="!ifAccess">注册页面</div> -->
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                ifAccess: false
            }
        })

    </script>
</body>
</html>